package com.sxbbc.common.core.mapper.jz;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.sxbbc.common.core.entity.jz.ChickenOrder;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sxbbc.common.core.utils.BasePage;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 养鸡订单 Mapper 接口
 * </p>
 *
 * @author
 * @since 2020-04-15
 */
public interface ChickenOrderMapper extends BaseMapper<ChickenOrder> {

    int selectByCidAndType(@Param("cid") Integer cid, @Param("crId") Integer crId);

    IPage<ChickenOrder> selectChickenOrderList(BasePage<ChickenOrder> page, @Param("param") ChickenOrder chickenOrder);

    ChickenOrder getChickenOrder(Integer id);

    int updateDateByPayCode(@Param("param") ChickenOrder order);

    int countChickenOrderByLevel1(@Param("cid") Integer cid);
}
